package com.zhuxiaomei.vo.restaurant;

import com.zhuxiaomei.entity.restaurant.RestaurantOrderDetail;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author hxm
 * @date 2025/1/1 12:48
 * @description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RestaurantOrderVO implements Serializable {
    /**
     * 订单No
     */
    private String orderNo;

    /**
     * 订单状态，1：已下单，2：已接单，3：已完成，4：取消订单
     */
    private Integer status;

    /**
     * 下单用户id
     */
    @Column(name = "order_user_id")
    private Long orderUserId;

    /**
     * 下单用户id
     */
    @Column(name = "receive_user_id")
    private Long receiveUserId;

    /**
     * 下单时间
     */
    private LocalDateTime orderTime;
    /**
     * 接单时间
     */
    private LocalDateTime receivedTime;

    /**
     * 结账时间
     */
    private LocalDateTime checkoutTime;

    /**
     * 总金额
     */
    private BigDecimal amount;

    /**
     * 取消原因
     */
    private String cancelReason;

    /**
     * 取消时间
     */
    private LocalDateTime cancelTime;

    /**
     * 订单细节
     */
    private List<RestaurantOrderDetail> restaurantOrderDetailList;

}
